package src.com.doit.demo;

public class Cat {
    String name;
    double weight;
    int age;
    String color;

    public Cat(String name, double weight, int age, String color) {
        this.name = name;
        this.weight = weight;
        this.age = age;
        this.color = color;
    }

    public void run()
    {
        System.out.println("跑,到处跑!");
    }
    public void call()
    {
        System.out.println("喵喵的叫~");
    }
    public void show()
    {
        System.out.println(name+"  体重:"+weight+"公斤 "+age+"岁 颜色:"+color);
    }
    public void set(String name,double weight,int age,String color)
    {
        this.name=name;
        this.weight=weight;
        this.age=age;
        this.color=color;
    }
}
